package com.mrdeer.merchant.convert;

import com.mrdeer.merchant.api.dto.StoreDTO;
import com.mrdeer.merchant.api.entity.Store;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/10 0010 10:39
 */
@Mapper
public interface StoreConvert {

    StoreConvert INSTANCE = Mappers.getMapper(StoreConvert.class);

    StoreDTO entity2Dto(Store entity);

    Store dto2Entity(StoreDTO dto);

    List<StoreDTO> listEntity2Dto(List<Store> stores);
}
